package liy.demo.wikiproject.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;

@Service
@Data
public class CategoryResp implements Serializable {

    private List<CategoryResp> children;
        @JsonFormat(shape = JsonFormat.Shape.STRING)
        private Long id;
        private Long parent;
        private String name;
        private Integer sort;
    }